/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Admin.java
 *
 * Created on Mar 27, 2011, 4:20:23 PM
 */
package vn.aptech.project.view;

import vn.aptech.project.control.Employee_Detail_BLL;
import vn.aptech.project.control.category_BLL;
import vn.aptech.project.control.product_BLL;
import vn.aptech.project.control.tblorder_BLL;
import java.awt.Color;
import java.awt.Toolkit;
import java.io.IOException;
import java.net.URL;
import java.sql.SQLException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Mr.Hiep
 */
public class Staff extends javax.swing.JFrame {

    /** Creates new form Admin */
    public Staff() throws IOException, SQLException, ClassNotFoundException {
        initComponents();

        try {
            Statistics st = new Statistics();
            st.setVisible(true);
            st.doLayout();
            JpLoad.add(st);
            JpLoad.doLayout();

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        JpLoad = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        lblPresonal = new javax.swing.JLabel();
        lblStatstics = new javax.swing.JLabel();
        lblBillmanagement = new javax.swing.JLabel();
        lblProductmanagement = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        lblStatistics = new javax.swing.JLabel();
        lblBillManagement = new javax.swing.JLabel();
        lblProductManagement = new javax.swing.JLabel();
        lblLogout = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        lblPersonal = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        mniStatistcs = new javax.swing.JMenuItem();
        mniBillManagement = new javax.swing.JMenuItem();
        mniProductManagement = new javax.swing.JMenuItem();
        mniLogout = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Staff");
        setBackground(new java.awt.Color(255, 255, 255));

        JpLoad.setBackground(new java.awt.Color(255, 255, 255));
        JpLoad.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        JpLoad.setLayout(new java.awt.BorderLayout());

        jPanel2.setBackground(new java.awt.Color(255, 255, 255));
        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        lblPresonal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Personal information.jpg"))); // NOI18N
        lblPresonal.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblPresonalMouseClicked(evt);
            }
        });

        lblStatstics.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Statistics.jpg"))); // NOI18N
        lblStatstics.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblStatsticsMouseClicked(evt);
            }
        });

        lblBillmanagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Bill Management.jpg"))); // NOI18N
        lblBillmanagement.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblBillmanagementMouseClicked(evt);
            }
        });

        lblProductmanagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Product Management.jpg"))); // NOI18N
        lblProductmanagement.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblProductmanagementMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(lblPresonal)
                .addGap(43, 43, 43)
                .addComponent(lblStatstics, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(lblBillmanagement)
                .addGap(49, 49, 49)
                .addComponent(lblProductmanagement, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(262, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProductmanagement, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                    .addComponent(lblBillmanagement, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(lblStatstics, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(lblPresonal, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jPanel3.setBackground(new java.awt.Color(255, 255, 255));
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        lblStatistics.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblStatistics.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblStatistics.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/iconmenu.jpg"))); // NOI18N
        lblStatistics.setText("Statistics");
        lblStatistics.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblStatisticsMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblStatisticsMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblStatisticsMouseExited(evt);
            }
        });

        lblBillManagement.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblBillManagement.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblBillManagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/iconmenu.jpg"))); // NOI18N
        lblBillManagement.setText("Bill Management");
        lblBillManagement.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblBillManagementMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblBillManagementMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblBillManagementMouseExited(evt);
            }
        });

        lblProductManagement.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblProductManagement.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblProductManagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/iconmenu.jpg"))); // NOI18N
        lblProductManagement.setText("Product Management");
        lblProductManagement.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblProductManagementMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblProductManagementMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblProductManagementMouseExited(evt);
            }
        });

        lblLogout.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblLogout.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lblLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/iconmenu.jpg"))); // NOI18N
        lblLogout.setText("Log Out");
        lblLogout.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblLogoutMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblLogoutMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblLogoutMouseExited(evt);
            }
        });

        jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/logo.jpg"))); // NOI18N

        lblPersonal.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblPersonal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/iconmenu.jpg"))); // NOI18N
        lblPersonal.setText("Personal information");
        lblPersonal.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblPersonalMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lblPersonalMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblPersonalMouseExited(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 196, Short.MAX_VALUE)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblStatistics, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(61, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblBillManagement, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                .addGap(19, 19, 19))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblProductManagement, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(lblLogout, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE)
                .addGap(19, 19, 19))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap(16, Short.MAX_VALUE)
                .addComponent(lblPersonal)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblStatistics)
                .addGap(18, 18, 18)
                .addComponent(lblBillManagement)
                .addGap(18, 18, 18)
                .addComponent(lblProductManagement)
                .addGap(18, 18, 18)
                .addComponent(lblLogout)
                .addGap(49, 49, 49)
                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jMenu1.setText("Menu");

        jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/usericon.jpg"))); // NOI18N
        jMenuItem1.setText("Personal information");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        mniStatistcs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/StatisticsIcon.jpg"))); // NOI18N
        mniStatistcs.setText("Statistics");
        mniStatistcs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniStatistcsActionPerformed(evt);
            }
        });
        jMenu1.add(mniStatistcs);

        mniBillManagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/BillManagementIcon.jpg"))); // NOI18N
        mniBillManagement.setText("Bill Management");
        mniBillManagement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniBillManagementActionPerformed(evt);
            }
        });
        jMenu1.add(mniBillManagement);

        mniProductManagement.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/ProductManagementIcon.jpg"))); // NOI18N
        mniProductManagement.setText("Product Management");
        mniProductManagement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniProductManagementActionPerformed(evt);
            }
        });
        jMenu1.add(mniProductManagement);

        mniLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Logouticon.jpg"))); // NOI18N
        mniLogout.setText("Log out");
        mniLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mniLogoutActionPerformed(evt);
            }
        });
        jMenu1.add(mniLogout);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Help");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(JpLoad, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(JpLoad, javax.swing.GroupLayout.DEFAULT_SIZE, 500, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mniStatistcsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniStatistcsActionPerformed
        try {
            Statistics st = new Statistics();
            st.setVisible(true);
            st.doLayout();
            JpLoad.removeAll();
            JpLoad.add(st);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_mniStatistcsActionPerformed

    private void mniBillManagementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniBillManagementActionPerformed
        try {
            BillManagementStaff bm = new BillManagementStaff();
            bm.setVisible(true);
            bm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(bm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_mniBillManagementActionPerformed

    private void mniProductManagementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniProductManagementActionPerformed
        try {
            ProductManagementStaff pm = new ProductManagementStaff();
            pm.setVisible(true);
            pm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(pm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_mniProductManagementActionPerformed

    private void mniLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mniLogoutActionPerformed
        Login lg = new Login();
        lg.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_mniLogoutActionPerformed

    private void lblStatisticsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblStatisticsMouseClicked
        try {
            Statistics st = new Statistics();
            st.setVisible(true);
            st.doLayout();
            JpLoad.removeAll();
            JpLoad.add(st);
            JpLoad.doLayout();

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblStatisticsMouseClicked

    private void lblBillManagementMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblBillManagementMouseClicked
        try {
            BillManagementStaff bm = new BillManagementStaff();
            bm.setVisible(true);
            bm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(bm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblBillManagementMouseClicked

    private void lblProductManagementMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblProductManagementMouseClicked
        try {
            ProductManagementStaff pm = new ProductManagementStaff();
            pm.setVisible(true);
            pm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(pm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblProductManagementMouseClicked

    private void lblLogoutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLogoutMouseClicked
        Login lg = new Login();
        lg.setVisible(true);
        this.setVisible(false);
    }//GEN-LAST:event_lblLogoutMouseClicked

    private void lblStatisticsMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblStatisticsMouseEntered
        lblStatistics.setForeground(Color.red);
    }//GEN-LAST:event_lblStatisticsMouseEntered

    private void lblStatisticsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblStatisticsMouseExited
        lblStatistics.setForeground(Color.BLACK);
    }//GEN-LAST:event_lblStatisticsMouseExited

    private void lblBillManagementMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblBillManagementMouseEntered
        lblBillManagement.setForeground(Color.red);
    }//GEN-LAST:event_lblBillManagementMouseEntered

    private void lblBillManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblBillManagementMouseExited
        lblBillManagement.setForeground(Color.BLACK);
    }//GEN-LAST:event_lblBillManagementMouseExited

    private void lblProductManagementMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblProductManagementMouseEntered
        lblProductManagement.setForeground(Color.red);
    }//GEN-LAST:event_lblProductManagementMouseEntered

    private void lblProductManagementMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblProductManagementMouseExited
        lblProductManagement.setForeground(Color.BLACK);
    }//GEN-LAST:event_lblProductManagementMouseExited

    private void lblLogoutMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLogoutMouseEntered
        lblLogout.setForeground(Color.red);
    }//GEN-LAST:event_lblLogoutMouseEntered

    private void lblLogoutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblLogoutMouseExited
        lblLogout.setForeground(Color.BLACK);
    }//GEN-LAST:event_lblLogoutMouseExited

    private void lblPresonalMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblPresonalMouseClicked
        try {
            PersonalInformation pi = new PersonalInformation(this, true);
            pi.setVisible(true);

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblPresonalMouseClicked

    private void lblStatsticsMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblStatsticsMouseClicked
        try {
            Statistics st = new Statistics();
            st.setVisible(true);
            st.doLayout();
            JpLoad.removeAll();
            JpLoad.add(st);
            JpLoad.doLayout();

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblStatsticsMouseClicked

    private void lblBillmanagementMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblBillmanagementMouseClicked
        try {
            BillManagementStaff bm = new BillManagementStaff();
            bm.setVisible(true);
            bm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(bm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblBillmanagementMouseClicked

    private void lblProductmanagementMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblProductmanagementMouseClicked
        try {
            ProductManagementStaff pm = new ProductManagementStaff();
            pm.setVisible(true);
            pm.doLayout();
            JpLoad.removeAll();
            JpLoad.add(pm);
            JpLoad.doLayout();
        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblProductmanagementMouseClicked

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        try {
            PersonalInformation pi = new PersonalInformation(this, true);
            pi.setVisible(true);

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void lblPersonalMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblPersonalMouseClicked
        try {
            PersonalInformation pi = new PersonalInformation(this, true);
            pi.setVisible(true);

        } catch (IOException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lblPersonalMouseClicked

    private void lblPersonalMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblPersonalMouseEntered
lblPersonal.setForeground(Color.red);
    }//GEN-LAST:event_lblPersonalMouseEntered

    private void lblPersonalMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblPersonalMouseExited
       lblPersonal.setForeground(Color.black);
    }//GEN-LAST:event_lblPersonalMouseExited

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                try {
                    new Staff().setVisible(true);
                } catch (IOException ex) {
                    Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
                } catch (SQLException ex) {
                    Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(Staff.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel JpLoad;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JLabel lblBillManagement;
    private javax.swing.JLabel lblBillmanagement;
    private javax.swing.JLabel lblLogout;
    private javax.swing.JLabel lblPersonal;
    private javax.swing.JLabel lblPresonal;
    private javax.swing.JLabel lblProductManagement;
    private javax.swing.JLabel lblProductmanagement;
    private javax.swing.JLabel lblStatistics;
    private javax.swing.JLabel lblStatstics;
    private javax.swing.JMenuItem mniBillManagement;
    private javax.swing.JMenuItem mniLogout;
    private javax.swing.JMenuItem mniProductManagement;
    private javax.swing.JMenuItem mniStatistcs;
    // End of variables declaration//GEN-END:variables
}
